package com.zmj.service.impl;

import com.zmj.entity.Log;
import com.zmj.mapper.LoggerMapper;
import com.zmj.service.LogService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

@Service
public class LogServiceImpl implements LogService {

    @Resource
    LoggerMapper loggerMapper;

    @Override
    public boolean addLogger(Log log) {
        return loggerMapper.addLogger(log);
    }

    @Override
    public List<Log> selLogs() {
        return loggerMapper.selLogs();
    }
}
